/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.edu.senaclem.logica;

import co.edu.senaclem.modelo.AsignaFichas;
import co.edu.senaclem.persistencia.IAsignaFichasDAO;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author DILOVE
 */
@Stateless
public class AsignaFichasLogica implements AsignaFichasLogicaLocal{
    
    @EJB
    private IAsignaFichasDAO asignaFichasDAO;

    @Override
    public int generarCodigoAsigna() throws Exception {
        return asignaFichasDAO.generarCodigo();
    }

    @Override
    public int consultarCodigoAsigna(Long documentoInstructor, Integer fichaTitulacion) throws Exception {
        return asignaFichasDAO.consultarCodigo(documentoInstructor, fichaTitulacion);
    }

    @Override
    public AsignaFichas consultarPorId(int codigoAsigna) throws Exception {
        return  asignaFichasDAO.consultarPorId(codigoAsigna);
    }
    
  

}
